const {ipcRenderer} = require('electron');
const $ = require('../resources/jquery3-7-0.mini.js')
const axios = require('../resources/axios.min.js')

$("#pinnedImage").click(()=>{
    console.log('go click change')
    ipcRenderer.send('learn-return')
})

const change = async() => {
    const pinnedImage = document.getElementById("pinnedImage");
    ipcRenderer.send('learn-return')
}

window.addEventListener('DOMContentLoaded',()=>{
    axios.get('http://localhost:8081/user').then(async res=>{
        console.log(res.data[0])
        $(".userName1").text(res.data[0].name)
    })
})
